package org.unisinos.gc.form;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.unisinos.gc.vo.Autor;

public class AutorForm extends ActionForm {

	private static final long serialVersionUID = 858785176446130684L;
	public static final String LIST = "list";
	public static final String SAVE = "save";
	public static final String EDIT = "edit";
	public static final String DELETE = "delete";
	public static final String SAVE_NEW = "saveNew";
	
	Autor autor;
	String acao;
	List<Autor> autores;
	
	public AutorForm() {
	}
	
	@Override
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		super.reset(mapping, request);
		this.autor = new Autor();
		acao = LIST;
	}

	public Autor getAutor() {
		return autor;
	}

	public void setAutor(Autor autor) {
		this.autor = autor;
	}

	public String getAcao() {
		return acao;
	}

	public void setAcao(String acao) {
		this.acao = acao;
	}

	public List<Autor> getAutores() {
		return autores;
	}

	public void setAutores(List<Autor> autores) {
		this.autores = autores;
	}
	
	
}